module.exports = app => {
    app.beforeStart(function* () {
        // 应用会等待这个函数执行完成才启动
        app.locals.tokenScrect="CALLMESOULTOKEN";
        app.locals.sae={
            'MYSQL_HOST':'w.rdc.sae.sina.com.cn',
            'MYSQL_HOST_S':'r.rdc.sae.sina.com.cn',
            'MYSQL_PORT':3306,
            'ACCESSKEY':'21xom0oyok',
            'SECRETKEY':'wjk4mjxl10m1llzzikmz252mw4ky5441xj0hh01m',
            'DATABASE':'app_callmesoul'

        }
        app.model.sync();
    });
};